how to solve and product